package engine.graphics;

import java.io.Serializable;
import java.util.HashMap;

public class SpriteAnimationSheet implements Serializable{

	private static final long serialVersionUID = 1L;

	private HashMap<String, SpriteAnimation> animations ; 

	public SpriteAnimationSheet(){
		animations = new HashMap<String, SpriteAnimation>(); 
	}
	
	public SpriteAnimation getAnimationByName(String name){
		return animations.get(name); 
	}
	
	public void addNewAnimation(String name, SpriteAnimation animation){
		animations.put(name, animation); 
	}
		
	public int getSize(){
		return animations.size() ; 
	}
	
}
